class smx_nginx::params {
  case $ipaddress {
    '10.1.103.110' : {
      $cmis_server = '10.1.13.209'
      $cas_server = '10.1.13.215'
    }
    '10.1.103.145' : {
      $cmis_server = '10.1.13.209'
      $cas_server = '10.1.13.215'
    }
    default : {
      $cmis_server = '127.0.0.1'
      $cas_server = '127.0.0.1'
    }
  }
  file { '/etc/nginx/vhost/common.conf':
    ensure  => file,
    group   => root, owner => root,
    mode    => 644,
    require => Package['nginx'],
    notify  => Service['nginx'],
    content => template('smx_nginx/common.conf.erb')
  }
}